package service

import (
	"gitee.com/legend9999/publisher/dao"
	"gitee.com/legend9999/publisher/modle"
)

type BookStatusService int

var bookStatusDAO dao.BookStatusDAO

func (b *BookStatusService) Save(status *modle.BookStatus) error {
	return bookStatusDAO.Save(status)
}
func (b *BookStatusService) Query(bookID int64, status modle.Status) (*modle.BookStatus, error) {
	return bookStatusDAO.Query(bookID, status)
}
func (b *BookStatusService) QueryList(bookID int64) ([]*modle.BookStatus, error) {
	return bookStatusDAO.QueryList(bookID)
}
